package com.example.stock.service;

import com.example.stock.excel.StockOperate;

import java.util.List;
import java.util.Map;

public interface StockOperationService {

    Map<String, List<StockOperate>> getDayFormat(String stock);

    Map<String, List<StockOperate>> getWeekFormat(String stock);

    Map<String, List<StockOperate>> getMonthFormat(String stock);

    List<StockOperate> getOperationData();

    List<StockOperate> getLastedOperationData();

    List<StockOperate> getLastedOperationData(int limit);

    List<StockOperate> getStockOperationData(String stock);

    /**
     * 最近操作的股票名
     */
    List<String> getLastedOperationStocks(int limit);

    Map<String, List<StockOperate>> operationDataGroupByDate();

    Map<String, List<StockOperate>> operationDataGroupByMonth();

    Map<String, List<StockOperate>> operationDataGroupByStock();

    List<String> getStockHold();
}